package com.love.netty.demo.handler.response;

import com.love.netty.core.packet.response.LogoutResponsePacket;
import com.love.netty.util.SessionUtils;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @ClassName: LogoutResponseHandler
 * @Description:
 * @Author: wuj
 * @Date: 2021-06-25 17:14
 **/
public class LogoutResponseHandler extends SimpleChannelInboundHandler<LogoutResponsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, LogoutResponsePacket logoutResponsePacket) {
        SessionUtils.unBindSession(ctx.channel());
    }
}
